﻿namespace WeWork.Model
{
    /// <summary>
    /// 音频共享文档消息
    /// </summary>
    public class ChatVoipDocShare : MsgChatBase
    {
        /*
        {
            "msgid":"16527954622422422847_1594199256",
            "action":"send",
            "from":"18002520162",
            "tolist":["wo137MCgAAYW6pIiKKrDe5SlzEhSgwbA"],
            "msgtime":1594199235014,
            "msgtype":"voip_doc_share",
            "voipid":"gr2751c98b19300571f8afb3b74514bd32",
            "voip_doc_share":{
                "filename":"欢迎使用微盘.pdf.pdf",
                "md5sum":"ff893900f24e55e216e617a40e5c4648",
                "filesize":4400654,
                "sdkfileid":"CpsBKjAqZUlLdWJMd2gvQ1JxMzd0ZjlpdW5mZzJOOE9JZm5kbndvRmRqdnBETjY0QlcvdGtHSFFTYm95dHM2VlllQXhkUUN5KzRmSy9KT3pudnA2aHhYZFlPemc2aVZ6YktzaVh3YkFPZHlqNnl2L2MvcGlqcVRjRTlhZEZsOGlGdHJpQ2RWSVNVUngrVFpuUmo3TGlPQ1BJemlRPT0SOE5EZGZNVFk0T0RnMU16YzVNVGt5T1RJMk9GODFNelUyTlRBd01qQmZNVFU1TkRFNU9USTFOZz09GiA3YTcwNmQ2Zjc5NjY3MDZjNjY2Zjc4NzI3NTZmN2E2YQ=="
            }
        }
        */
        /// <summary>
        /// String类型, 音频id
        /// </summary>
        public string voipid { set; get; }
        /// <summary>
        /// 消息内容
        /// </summary>
        public VoipDocShareInfo voip_doc_share { set; get; }
    }

    public class VoipDocShareInfo
    {
        /// <summary>
        /// 文档共享文件名称。String类型
        /// </summary>
        public string filename { set; get; }
        /// <summary>
        /// 共享文件的md5值。String类型
        /// </summary>
        public string md5sum { set; get; }
        /// <summary>
        /// 共享文件的大小。Uint64类型
        /// </summary>
        public long filesize { set; get; }
        /// <summary>
        /// 共享文件的sdkfile，通过此字段进行媒体数据下载。String类型
        /// </summary>
        public string sdkfileid { set; get; }
    }
}
